# Maintainer: Sven-Hendrik Haase <svenstaro@archlinux.org>
pkgname=python-hcloud
pkgver=1.21.0
pkgrel=1
pkgdesc="Official Hetzner Cloud python library"
arch=('any')
url="https://github.com/hetznercloud/hcloud-python"
license=('MIT')
replaces=('hcloud-python')
provides=('hcloud-python')
depends=('python-requests' 'python-dateutil' 'python-future')
makedepends=('python-setuptools')
source=("$pkgname"-$pkgver.tar.gz::https://github.com/hetznercloud/hcloud-python/archive/v${pkgver}.tar.gz)
sha512sums=('8226a79324f0097d576cc1336e813a28a562fb9c3f50dcac1debb3c32bb52f4f5e563e920e2bbb6ce8be407a65de321b734d30156fd066d74ed95f6e6bd94a35')

build() {
  cd "$srcdir/hcloud-python-$pkgver"

  python setup.py build
}

package() {
  cd "$srcdir/hcloud-python-$pkgver"

  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}

# vim:set ts=2 sw=2 et:
